xenpaging: add error code to indicate iommem passthrough
authorOlaf Hering <olaf@aepfle.de>
Fri, 30 Mar 2012 15:09:07 +0000 (17:09 +0200)
committerOlaf Hering <olaf@aepfle.de>
Fri, 30 Mar 2012 15:09:07 +0000 (17:09 +0200)
commit2f84bdc38b94ec6f4dff53051e39d9f8cc168de6
treea611bee42fe8daf7be68a5afb5cc0f0d7af7ce91
parent157b4d954c81f83409c19ed650c893eb38f8e376
xenpaging: add error code to indicate iommem passthrough

Similar to the existing ENODEV and EXDEV error codes, add EMDEV to
indicate that iommu passthrough is not compatible with paging.
All error codes are just made-up return codes to give proper error
messages in the pager.

Also update the HAP related error message now that paging is enabled
also on AMD hosts.

Signed-off-by: Olaf Hering <olaf@aepfle.de>
Acked-by: Ian Jackson <Ian.Jackson@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Committed-by: Tim Deegan <tim@xen.org>
tools/xenpaging/xenpaging.c
xen/arch/x86/mm/mem_event.c